小編這邊用Postman來玩
"channel"
:頻道名稱。"username"
:客製名稱,不設定的話,預設是:incoming-webhook。"text"
:訊息內容。(連結語法:<[yourUrl]|[顯示文字]>
)。"icon_url"
:圖片網址。"icon_emoji"
: 表情符號(例:":sunglasses:"
,":scream:"
),你在Slack程式「輸入表情符號」時,可以看到語法。(PS:icon_emoji
跟icon_url
同時使用,會以表情符號為主。{
"channel": "#bright_devops",
"username": "2019iT邦幫忙鐵人賽",
"text": "歡迎大家訂閱『<https://ithelp.ithome.com.tw/ironman/signup/team/41|浪流連九程式匠自然產生的佛系碼農專區>』團隊",
"icon_url" : "https://member.ithome.com.tw/avatars/132192?s=ithelp"
}
{
"channel": "#bright_devops",
"username": "2019iT邦幫忙鐵人賽",
"text": "iT邦幫忙入侵了XD",
"icon_url" : "https://member.ithome.com.tw/avatars/132192?s=ithelp"
}
{
"channel": "#bright_devops",
"username": "太陽眼鏡",
"text": ":sunglasses::sunglasses::sunglasses:",
"icon_emoji" : ":sunglasses:"
}
{
"channel": "#bright_devops",
"username": "鐵人賽Orz",
"text": ":scream::scream::scream:",
"icon_emoji" : ":scream:"
}
呼…
待續…